package com.sales.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;
import java.util.UUID;

public class RomdomGenerater {

    public static String generateSeiNo(String storeId) {

        String uuid = storeId + "/" + UUID.randomUUID().toString().replace("-", "");

        return uuid;
    }

    //随机生成二维码批次编号
    public static String generteQrNo() {

        SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
        String str = format.format(new Date());
        Random random = new Random();
        Integer number = random.nextInt(10000);
        return str + number;
    }

}
